import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
import store from './store/index'
import '@/router/permission'
// 全局混淆代码
import mixin from '@/utils/mixin.js'
Vue.mixin(mixin);

Vue.config.productionTip = false

import { VueJsonp } from 'vue-jsonp'
Vue.use(VueJsonp)

import {
	Button,
	Select,
	Input,
	Form,
	FormItem,
	Table,
	TableColumn,
	Pagination,
	Menu,
	Submenu,
	MenuItem,
	Message,
	Loading,
	Dialog,
	Tabs,
	TabPane,
	Popover,
	Option,
	Descriptions,
	DescriptionsItem,
	Tooltip,
	MessageBox,
	Link,
	Checkbox
} from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm

Vue.use(Button)
Vue.use(Select).use(Checkbox).use(Input)
Vue.use(Loading)
Vue.use(Dialog)
Vue.use(Popover)
Vue.use(Tooltip)
Vue.use(Link)
Vue.use(Descriptions).use(DescriptionsItem)
Vue.use(Select).use(Option)
Vue.use(Tabs).use(TabPane)
Vue.use(Form).use(FormItem)
Vue.use(Table).use(TableColumn).use(Pagination)
Vue.use(Menu).use(Submenu).use(MenuItem)


new Vue({
	render: h => h(App),
	router,
	store
}).$mount('#app')
